package web_wms_model

import (
	"time"
)

const TableNameWmOutboundOrderHeader = "wm_outbound_order_header"

// WmOutboundOrderHeader mapped from table <wm_outbound_order_header>
type WmOutboundOrderHeader struct {
	ID               string    `gorm:"column:id;type:nvarchar;primaryKey" json:"id"`
	OrderCode        string    `gorm:"column:order_code;type:nvarchar;not null" json:"order_code"`
	OwnerID          string    `gorm:"column:owner_id;type:nvarchar" json:"owner_id"`
	OrderDetailCount int64     `gorm:"column:order_detail_count;type:int" json:"order_detail_count"`
	OwnerCode        string    `gorm:"column:owner_code;type:nvarchar" json:"owner_code"`
	Drawer           string    `gorm:"column:drawer;type:nvarchar" json:"drawer"`
	WarehouseCode    string    `gorm:"column:warehouse_code;type:nvarchar" json:"warehouse_code"`
	OrderType        string    `gorm:"column:order_type;type:varchar" json:"order_type"`
	PriorityLevel    string    `gorm:"column:priority_level;type:char" json:"priority_level"`
	InvoiceType      string    `gorm:"column:invoice_type;type:char" json:"invoice_type"`
	DeliveryType     string    `gorm:"column:delivery_type;type:char" json:"delivery_type"`
	OrderTime        time.Time `gorm:"column:order_time;type:datetime" json:"order_time"`
	ReceiverID       string    `gorm:"column:receiver_id;type:nvarchar" json:"receiver_id"`
	ReceiverCode     string    `gorm:"column:receiver_code;type:nvarchar" json:"receiver_code"`
	Status           string    `gorm:"column:status;type:nvarchar" json:"status"`
	IsCancel         string    `gorm:"column:is_cancel;type:char;default:0" json:"is_cancel"`
	CreateTime       time.Time `gorm:"column:create_time;type:datetime" json:"create_time"`
	UpdateTime       time.Time `gorm:"column:update_time;type:datetime" json:"update_time"`
	Remarks          string    `gorm:"column:remarks;type:nvarchar" json:"remarks"`
	TocFlag          string    `gorm:"column:toc_flag;type:char" json:"toc_flag"`
	Type             string    `gorm:"column:type;type:varchar;default:0" json:"type"`
	ZjdsOrderNum     string    `gorm:"column:zjds_order_num;type:nvarchar" json:"zjds_order_num"`
}

// TableName WmOutboundOrderHeader's table name
func (*WmOutboundOrderHeader) TableName() string {
	return TableNameWmOutboundOrderHeader
}
